﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SalesModel
{
    [Serializable]
    public class SalesDetail
    {

        private int idDetail;
        private int quantity;
        private double subTotal;

        private Product product;

        //Serializable methods
        public int IdDetail
        {
            get { return idDetail; }
            set { idDetail = value; }
        }
        public int Quantity
        {
            get { return quantity; }
            set { quantity = value; }
        }
        public double SubTotal
        {
            get { return subTotal; }
            set { subTotal = value; }
        }
        public Product Product
        {
            get { return product; }
            set { product = value; }
        }

        //Normal methods
        public Product getProduct()
        {
            return product;
        }
        public void setProduct(Product product)
        {
            this.product = product;
        }
        public int getIdDetail()
        {
            return idDetail;
        }
        public void setIdDetail(int idDetail)
        {
            this.idDetail = idDetail;
        }
        public int getQuantity()
        {
            return quantity;
        }
        public void setQuantity(int quantity)
        {
            this.quantity = quantity;
        }
        public double getSubTotal()
        {
            return subTotal;
        }
        public void setSubTotal(double subTotal)
        {
            this.subTotal = subTotal;
        }
    }
}
